package com.night.icm.persistence.base.repository;

import com.night.icm.persistence.base.entity.SystemDictionary;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * SystemDictionaryRepository
 *
 * @author Liao ZhiYong
 * @date 2019/12/22
 */
@Repository
public interface SystemDictionaryRepository extends JpaRepository<SystemDictionary, Long>, JpaSpecificationExecutor<SystemDictionary> {

    /**
     * 根据编号查询字典
     *
     * @param code 编号
     * @return SystemDictionary
     */
    SystemDictionary findByCode(String code);
}